/**
 * @(#)ClientRecordDAOImpl.java 2017年6月14日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IClientRecordDAO;
import org.jsbd.boss.domian.channel.ClientRecordVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import edu.hziee.common.queue.IBatchExecutor;

/**
 * TODO 请加入本类的说明
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service("clientRecordDao")
public class ClientRecordDAOImpl extends CrackUserBaseDao implements IClientRecordDAO, IBatchExecutor<ClientRecordVo> {
	public static final Logger LOGGER = LoggerFactory.getLogger(ClientRecordDAOImpl.class);

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientRecordDAO#insertClientRecord(org.jsbd.boss.domian
	 * .channel.ClientRecordVo)
	 */
	@Override
	public void insertClientRecord(ClientRecordVo clientRecordVo) {
		super.insert("qy_migu_record.INSERT_CLIENT_RECORD", clientRecordVo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientRecordDAO#createClientRecordTable(org.jsbd.boss
	 * .domian.channel.ClientRecordVo)
	 */
	@Override
	public Integer createClientRecordTable(ClientRecordVo clientRecordVo) {
		return super.update("qy_migu_record.CREATE_CLIENT_RECORD", clientRecordVo);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientRecordDAO#batchInsertClientRecord(java.util.
	 * List)
	 */
	@Override
	public void batchInsertClientRecord(List<ClientRecordVo> clientList) {
		super.batchInsert("qy_migu_record.INSERT_CLIENT_RECORD", clientList);
	}
	
	
	@Override
	public void batchUpdateClientRecord(List<ClientRecordVo> clientList) {
		super.batchUpdate("qy_migu_record.UPDATE_CLIENT_RECORD", clientList);
	}
	
	/*
	 * (non-Javadoc)
	 * 
	 * @see edu.hziee.common.queue.IBatchExecutor#execute(java.util.List)
	 */
	@Override
	public void execute(List<ClientRecordVo> records) {
		super.batchUpdate("qy_migu_record.DELETE_CLIENT_RECORD", records);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IClientRecordDAO#selectClientRecordVo(org.jsbd.boss
	 * .domian.channel.ClientRecordVo)
	 */
	@Override
	public List<ClientRecordVo> selectClientRecordList(ClientRecordVo clientRecordVo) {
		return super.queryForList("qy_migu_record.SELECT_CLIENT_RECORD_LIST", clientRecordVo);
	}
}
